package com.repair.category.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.repair.datasource.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 服务类型
 * </p>
 *
 * @author 桂龙
 * @since 2024-10-11
 */
@Getter
@Setter
@TableName("service_category")
@ApiModel(value = "ServiceCategory对象", description = "服务类型")
public class ServiceCategory extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("类型id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("类型名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("父类id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("级别(0是一级分类,1是二级分类,2三级分类)")
    @TableField("type")
    private String type;

    @ApiModelProperty("收费标准")
    @TableField("charge_standard")
    private String chargeStandard;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("逻辑删除(1为未删除，0为已删除)")
    @TableField("deleted")
    @TableLogic
    private String deleted;
}
